package com.gitee.xmhzzz.component.common.enums;

import java.io.Serializable;
import java.util.List;


/**
  * @ClassName
  * @Description
  * @Author wzq
  * @Date 2023/12/15 17:04
  * @Version 1.0
  */
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID=1L;

    private long nowPage;
    private long pageSize;
    private long totalCount;
    private long totalPageNum;
    private List<T> list;
    
    public PageResult(PageResult<?> tr)
    {
        super();
        this.nowPage = tr.nowPage;
        this.pageSize = tr.pageSize;
        this.totalCount = tr.totalCount;
        this.totalPageNum = tr.totalPageNum;
    }

    public PageResult() {
    }

    public PageResult(long nowPage, long pageSize, long totalCount,
                      long totalPageNum, List<T> list)
    {
        this.nowPage = nowPage;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        this.totalPageNum = totalPageNum;
        this.list = list;
    }


    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public long getNowPage() {
        return nowPage;
    }

    public void setNowPage(long nowPage) {
        this.nowPage = nowPage;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getTotalPageNum() {
        return totalPageNum;
    }

    public void setTotalPageNum(long totalPageNum) {
        this.totalPageNum = totalPageNum;
    }
}
